<!--- ========================================================================== --->
<!--- Revised _routenotification, from originator only.                          --->
<!--- by Maan 12072007 (part of Group Approval eTask application)                --->
<!--- ========================================================================== --->
<CFPARAM NAME="sWarn" DEFAULT="">
<CFSET sNotify = qryGetUSERID.PROFILENAME>
<CFSET sMailTo = qryNotifyProfile.PROFILENAME>
<!--- CFMAIL smtp base mail transport --->
<CFIF sMailTo NEQ "" and sNotify NEQ "">
	<!---<CFMAIL FROM="#LCase(qryGetUSERID.PROFILENAME)#"--- changed this as per client request that email notification should come from the encoder --->
	     <CFMAIL FROM="#LCase(client.profilename)#"
		TO="#LCase(sMailTo)#"
		SUBJECT="#client.mailcontent# Message(Routing Form)"
		TYPE="HTML" FAILTO="#client.websiteemailadd#">
			<FONT color="Maroon" style="font: 21px Arial">#client.companyname#</FONT><br>
			<FONT color="Maroon" style="font: 20px Arial">iBOS/e WebShell 2005 Routing Form</FONT><br>
			<TABLE border="1" cellpadding="3" cellspacing="3" style="font: 13px Arial" width = 400>
				<TR><TD width=30%><strong>Form Group</strong></TD><TD width=70%>#GetData.formgroup#</TD></TR>
				<TR><TD width=30%><strong>eForm</strong></TD><TD width=70%>#GetData.description#</TD></TR>
				<TR><TD width=30%><strong>Sender</strong></TD><TD width=70%>#client.myname#</TD></TR>
				<TR>
				<TD width=30%><strong>Message</strong></TD>
				<TD width=70%>You have a new work item.<BR><A HREF="#client.domain#eforms/batchapprove.cfm?autolog=yes&userid=#qryNotifyProfile.USERID#&companyid=#client.companycode#&cmbItems=#GetData.description#&cmbActions=S&lastandread=yes">Click here to view.</A></TD>
				</TR>
			</TABLE>
			<BR>
			Note: You need to sign on to your #client.mailcontent# account to open the item.<BR>
	</CFMAIL>
<CFELSE>
	<CFIF sNotify EQ "">
		<CFSET sWarn = "You have no configured email address. System failed to send notification.">
	<CFELSE>
		<CFSET sWarn = "One of your email recipients has no configured email address. System failed to send notification.">
	</CFIF>
</CFIF>
